package com.dc.aimc.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dc.aimc.common.core.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 第三方应用表
 * </p>
 *
 * @author 冯照龙
 * @since 2021-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_app")
public class App extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 应用名称
     */
    @TableField("app_name")
    private String appName;

    /**
     * app_id
     */
    @TableField("app_id")
    private String appId;

    /**
     * app_secret
     */
    @TableField("app_secret")
    private String appSecret;

    /**
     * 状态（0：正常，1：停用）
     */
    @TableField("status")
    private String status;

    /**
     * 删除标记
     */
    @TableField("is_delete")
    private String isDeleted;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 删除时间
     */
    @TableField("delete_time")
    private LocalDateTime deleteTime;

    /**
     * 租户id
     */
    @TableField("tenant_id")
    private String tenantId;

}
